<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-dojo-tags" prefix="sx"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>书皇馆 书籍浏览</title>
		<sx:head />
		<SCRIPT src="/js/basic/top.js" type=text/javascript></SCRIPT>
		<link href="/css/front/shop.css" rel="stylesheet" type="text/css" />
		<link href="/css/front/item/item.css" rel="stylesheet" type="text/css" />
		<SCRIPT src="/js/jquery/jquery-1.7.2.js" type=text/javascript></SCRIPT>
		<script type="text/javascript" src="/js/jquery/jquery.blockUI.js"></script>
		<script type="text/javascript" src="/js/jquery/jquery.form.js"></script>
		<script type="text/javascript" language="javaScript" src="/js/front/item/item.js"></script>
		<script type="text/javascript" language="javaScript" src="/js/front/booklist.js"></script>
		<SCRIPT src="/js/index/search.js" type=text/javascript></SCRIPT>
		<script type="text/javascript" src="/js/xheditor/xheditor-1.1.14-zh-cn.min.js"></script>
	</head>
	<body>
<div id="topNavWrapper">
		<s:url id="user_login" namespace="/forward/view" action="basic_top"></s:url>
		<sx:div href="%{user_login}" id="top_show"></sx:div>
</div>
		<div id="wrapper">
		<s:include value="../shop/shop_head.jsp"></s:include>
			<div class="clr"></div>
			<!--左侧在线客服 商家基本信息 畅销书 书籍分类-->
			<div id="item_left">
				<div id="sjjbxx">
					<h2>
						<s></s>商家基本信息
					</h2>
					<ul>
						<li>
							公司名：${book.shop.coName }
						</li>
						<li>
							所在地：${book.shop.coAddress }
						</li>
						<li>
							商 家：${book.shop.shopName }
						</li>
						<li>
							<dl>
								<dt>服务电话：</dt>
								<s:iterator value="book.shop.onlines" var="onlines" status="stu">
									<s:if test="#onlines.userType==2">
										<dd><s:property value="#onlines.userNumber" /></dd>
									</s:if>
								</s:iterator>
							</dl>
						</li>
					</ul>
					<span>
						<s:url id="intoshopURL" namespace="/forward/view" action="shop_intoshop">
							<s:param name="shopId" value="book.shop.id"></s:param>
						</s:url>
						<s:a href="%{intoshopURL}" ><img src="/image/front/item_07.gif" alt="进入店铺" /></s:a> 
					</span>

					<div class="clr"></div>
				</div>

				<div id="zxkf">
					<h2>
						<s></s>在线客服
					</h2>
					<ul>
						<!-- 类型表示(0、表示QQ 1、表示WW 2、表示电话) -->
						<s:iterator value="book.shop.onlines" var="onlines">
							<s:if test="#onlines.userType==0">
								<li>
									<a target="_blank"
										href="http://wpa.qq.com/msgrd?v=3&uin=${onlines.userNumber}&site=qq&menu=yes">
										<img border="0"
											src="http://wpa.qq.com/pa?p=2:${onlines.userNumber}:41"
											alt="点击这里给我发消息" title="点击这里给我发消息"> </a>
								</li>
							</s:if>
							<s:elseif test="#onlines.userType==1">
								<li>
									<a target="_blank"
										href="http://amos.im.alisoft.com/msg.aw?v=2&uid=${onlines.userNumber}&site=cnalichn&s=4">
										<img border="0"
											src="http://amos.im.alisoft.com/online.aw?v=2&uid=${onlines.userNumber}&site=cnalichn&s=4"
											alt="有事联系我" /> </a>
								</li>
							</s:elseif>
						</s:iterator>
					</ul>
					<div class="clr"></div>
				</div>
				<!--浏览历史-->
				<div id="llls">
					<h2><s></s>浏览历史</h2>
					<div class="hotShop sort1 yspace" id=DivShopPaiHang_Food>
						<div class=txt id=DivShopPaiHang_ShowPanel>
							<div class=txt11>
								<sx:div href="/forward/view/book_history.go"></sx:div>
							</div>
						</div>
						<div class="clr"></div>
					</div>

					<div class="clr"></div>
				</div>
		
				<div id="cxs">
					<h2>
						<s></s>猜你都喜欢
					</h2>
					<!--<s:include value="/ftl/html/best_love.html"></s:include>
					 
					<s:url value="/forward/view/book_bestseller.go" id="bestsellerURL">
						<s:param name="shopid" value="book.shop.id"/>
					</s:url>
					<sx:div href="%{bestsellerURL}"></sx:div>
					 -->
					 <ul id="cxs_content">
					 
					 </ul>
					 <script type="text/javascript" >youLove('${book.parent.id}')</script>
					<div class="clr"></div>
				</div>

				<div id="sjfl">
					<h2>
						<s></s>店铺精品
					</h2>
					<s:url value="/forward/view/book_recommend.go" id="recommendURL">
						<s:param name="shopid" value="book.shop.id"/>
					</s:url>
					<sx:div href="%{recommendURL}"></sx:div>
					<div class="clr"></div>
				</div>
			</div>
			<!--左侧 end-->
			<div id="item_right">
				<h1>
					<a href="#">${book.bookName}</a>
				</h1>

				<div id="item_r_more">
					<div class="zoomPan" id="zoomPan">
						<div id="img_all">
							<img src="${book.logo_300 }" alt="" />
						</div>
						<div id="zoom" class="sh">
							<img src="${book.logo}" alt="" />
						</div>
					</div>
					<ul>
						<li>
							价格：
							<s>${book.price}</s>
						</li>
						<li>
							【作者】  ${book.author}
							
						</li>
						<li>
							【类型】  ${book.parent.name}
						</li>
						<li>
							【积分】 ${book.integral}分
						</li>
						<li></li>
					</ul>
					<span>
						<input type="button" style="cursor: pointer;" value="我推荐这本书籍" onclick="tip('${book.id}')"><br/><br/>
						<input type="button" style="cursor: pointer;" value="我收藏这本书籍" onclick="stow('${book.id}',event)"><br/><br/>
						<a href="/control/book/cart_addBook.go?buyItem.id=${book.id}" >
							<input type="button" class="bthtwo" value=" " /><br/>
						</a>
						<br>
						<c:if test="${fn:length(book.path)>0}">
							<s:a namespace="/forward/file" action="download.go">
								<s:param name="inputPath" value="book.path"></s:param>
								<input type="image" src="/image/front/btn_down.gif"/>
							</s:a>
						</c:if>
					</span>
				</div>
				<div class="clr"></div>
				<div id="xiangxi">
					<DIV class="wrap" id=divspacerank>
						<DIV class=md-head id=blogs_spacerank>
							<A class="a10 wrap cur wid" id=blogs_spacerank_tab_0 hideFocus
								onClick=blogs_spacerank_ck(0);return false;;href="javascript:;">宝贝详情</A>
							<A class="a10 wrap" id=blogs_spacerank_tab_1 hideFocus
								onClick=blogs_spacerank_ck(1);return false;;href="javascript:;">评价详情</A>
							<A class="a10 wrap" id=blogs_spacerank_tab_2 hideFocus
								onClick=blogs_spacerank_ck(2);return false;;href="javascript:;">成交记录</A>
							<A class="a10 wrap" id=blogs_spacerank_tab_3 hideFocus
								onClick=blogs_spacerank_ck(3);return false;;href="javascript:;">本书论坛</A>
							<BR class=clear>
						</DIV>
						<DIV class=md-body>
							<!-- 产品描述 -->
							<DIV id=blogs_spacerank_0 style="overflow: hidden;">
								${book.description }
							</DIV>
							<!-- 评价列表 -->
							<DIV id=blogs_spacerank_1 style="DISPLAY: none">
								<s:url action="book_appraise" namespace="/forward/view" id="user_appraise">
									<s:param name="bookid" value="book.id"></s:param>
								</s:url>
								<sx:div href="%{user_appraise}" id="user_appraise_list"></sx:div>
							</DIV>
							<!-- 售出历史 -->
							<DIV id=blogs_spacerank_2 style="DISPLAY: none">
								<s:url action="book_soldBook" namespace="/forward/view" id="user_soldBook">
									<s:param name="bookid" value="book.id"></s:param>
								</s:url>
								<sx:div href="%{user_soldBook}" id="user_soldBook_list"></sx:div>
							</DIV>
							<!-- 书籍论坛 -->
							<DIV id=blogs_spacerank_3 style="DISPLAY: none">
								<input type="hidden" id="_book_id" value="${book.id }">
								<DIV id="forum_content">
									<s:url id="discuss_url" action="bbs_discuss" namespace="/forward/view">
										<s:param name="bookid" value="book.id"></s:param>
									</s:url>
									<sx:div href="%{discuss_url}" id="bbs_discuss_list"></sx:div>
								</DIV>
								<div id="edit_content_div">
									<s:include value="/WEB-INF/page/login_page.jsp"></s:include>
								</div>
							</DIV>
						</DIV>
					</DIV>
					<SCRIPT language="javascript" type="text/javascript" src="/js/front/tab1.js"></SCRIPT>
				</div>
				<div class="clr"></div>
			</div>
			<div class="clr"></div>
			<div id="footer">
				<s:include value="/page/foot.html"></s:include>
			</div>
		</div>
	</body>
</html>